Release 10.1A: OpenEdge Data Management:
SQL Reference
REPLACE
Replaces all occurrences of
string_exp2instring_exp1withstring_exp3.Syntax
Example
This example illustrates the
REPLACEfunction, replacing the letters ‘mi’in thelast_name‘Smith’with the letters ‘moo’:
Notes
string_expcan be fixed-length or variable-lengthCHARACTERdata types.- If any of the arguments of the expression evaluates to
NULL, the result isNULL.- If the replacement string is not found in the search string, it returns the original string.
- Each occurrence of
string_expand the result can contain multi-byte characters. Character comparisons are case sensitive and are determined by sort weights in the collation table in the database.Compatibility
ODBC compatible
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |